package com.share.wechat.core.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 包含商品的详细信息
 * 包括价格
 * 数量
 * 详细描述
 * 销量等等
 */
@Entity
@Table(name = "WEB_PRD_QUOTE_DETAIL")
public class QuoteDetail implements Serializable{
    /**
     * id
     */
    @Id
    private String id;
    /**
     * 大段大段的描述
     */
    private String descItem;
    /**
     * 价格
     */
    private double price;
    /**
     * 销量
     */
    private int salesVolume;
    /**
     * 具体商品的id
     */
    private String detailId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDescItem() {
        return descItem;
    }

    public void setDescItem(String descItem) {
        this.descItem = descItem;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getSalesVolume() {
        return salesVolume;
    }

    public void setSalesVolume(int salesVolume) {
        this.salesVolume = salesVolume;
    }

    public String getDetailId() {
        return detailId;
    }

    public void setDetailId(String detailId) {
        this.detailId = detailId;
    }

    @Override
    public String toString() {
        return "QuoteDetail{" +
                "id='" + id + '\'' +
                ", descItem='" + descItem + '\'' +
                ", price=" + price +
                ", salesVolume=" + salesVolume +
                ", detailId='" + detailId + '\'' +
                '}';
    }
}
